<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>$catinfo[cat_name]|$userinfo[nicename]|{$config[cfg_webname]}</title>
<meta name="description" content="$catinfo[category_keywords]">
<meta name="keywords" content="$catinfo[category_description]" />
<link href="{$BASE_V}styles.css" rel="stylesheet" type="text/css" />
<script src="{$BASE_V}jquery-1.4.2.min.js" type="text/javascript"></script>
</head>

<body>
<!--{template inc/top}-->
  <div class="wrap">
	<!--{template inc/header}-->
    <!--{template inc/banner}-->
    <div class="project_main">
      <h5>$now_url</h5>
   <div class="sidebar">
    <img src="{$BASE_V}images/news_category.gif" />
    <div class="service conference_hotel">
      <ul>
		$category_list
      </ul>
    </div>   
        <!--{template inc/left_lianxi_a}-->  
        <!--{template inc/left_hotel_b}-->
        <!--{template inc/left_news_d}-->    
        <!--{template inc/left_huiyi_e}-->    
    </div>
   <div class="content">
    <h4 class="title_none">$catinfo[cat_name]</h4>
    <div class="text_content">      
<form name="modform" id="forms" action="{$config[cfg_indexurl]}?m=aboutus.gbook_save&username=$userinfo[username]" method="post"  onSubmit="return chkForm();">
<table border="0" align="center" cellpadding="0" cellspacing="5">
<tr>
  <td  style="color:#000000">主题</td>
  <td><input name="comment_title" type="text" id="comment_title" size="50" maxlength="100"
  title="主题*" /></td>
  <td><font color="#FF0000">*</font></td>
</tr>
<tr>
  <td  style="color:#000000">联系人</td>
  <td><input name="comment_author" type="text" id="comment_author" size="50"
  title="姓名*" /></td>
  <td></td>
</tr>
<tr>
  <td  style="color:#000000">电话</td>
  <td><input name="comment_author_tel" type="text" id="comment_author_tel" size="50"
  title="电话*" /></td>
  <td></td>
</tr>
<tr>
  <td  style="color:#000000">E-Mail</td>
  <td><input name="comment_author_email" type="text" id="comment_author_email" size="50" title="E-Mail*" /></td>
  <td></td>
</tr>
<tr>
  <td  style="color:#000000">留言</td>
  <td><textarea name="comment_content" id="comment_content" cols="50" rows="10"
  title="留言*"></textarea>
  <font color="#FF0000">*</font></td>
  <td></td>
</tr>

<tr>
  <td  style="color:#000000"> 验证码</td>
  <td><input name="yzm" type="text" style="width:50px" id="yzm" /><img src="{$config[cfg_indexurl]}?m=tool.Captcha" id="img11" style="border:1px solid #999;  position:relative; top:7px" onClick="reloadcode();" alt="看不清楚?请点击刷新"><font color="#FF0000">*看不清楚?请点击刷新</font></td>
  <td></td>
</tr>

<tr>
  <td colspan="3" align="center">
<input type="submit" name="cbSubmit" id="cbSubmit" value="提交" />
<input type="reset" name="cbReset" id="cbReset" value="重置" /></td>
</tr>
</table>
</form>    
    </div>
   </div>
  <div class="clear"></div>
<!--{template inc/footer}-->
</div>
</div>
</body>
</html>
<script type="text/javascript" src="{$config[cfg_indexurl]}Public/js/tools.js"></script>
<script language="javascript">
function chkForm()
{		
	if($('comment_title').value == ""){
	   alert("请填写评论主题！");   
	   $('comment_title').focus();
	   return(false);
   	}

	if($('comment_author_tel').value != ""){
		var tip = $('comment_author_tel');
		var p1 =/^((\(\d{2,3}\))|(\d{3}\-))?(13|15|18)\d{9}$/;                     //判断 手机  	
		var strPhone = $('comment_author_tel').value;
		if(p1.test(strPhone)==false){
	   	   alert("手机号码格式不对！");   
		   $('comment_author_tel').focus();
		   return false;
		}		
	}

	if($('comment_author_email').value != ""){	
		var tip = $('comment_author_email');
		var a = $('comment_author_email').value;
		//var emailPat=/\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/;
		var emailPat=/^(([0-9a-zA-Z]+)|([0-9a-zA-Z]+[_.0-9a-zA-Z-]*[_.0-9a-zA-Z]+))@([a-zA-Z0-9-]+[.])+([a-zA-Z]{2}|net|NET|com|COM|gov|GOV|mil|MIL|org|ORG|edu|EDU|int|INT)$/;  
		var matchArray=a.match(emailPat);
		if (matchArray==null) {
			alert("电子邮件地址格式无效");
		   $('comment_author_email').focus();
			return false;
		}
	}

	if($('comment_content').value == ""){
	   alert("请填写评论内容！");   
	   $('comment_content').focus();
	   return(false);
   	}			
	if ($('yzm').value.length != 4 || isNaN($('yzm').value)) {
		alert('验证码必须为4位数字!');
	    $('yzm').focus();
	    return(false);
	}					
}
function reloadcode()
{
	$('img11').setAttribute('src','{$config[cfg_indexurl]}?m=tool.Captcha&'+Math.random())
}
</script>
